package com.hxzy.course.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hxzy.course.mapper.StaffMapper;
import com.hxzy.course.pojo.Staff;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StaffService {

    @Autowired
    private StaffMapper sm;

    public List<Staff> getAllTeacher(){
        QueryWrapper<Staff> wrapper = new QueryWrapper<>();
        wrapper.eq("staff_job","教练");
        List<Staff> list = sm.selectList(wrapper);
//        System.out.println(list);
        return list;
    }
}
